import socket
sersock=socket.socket(socket.AF_INET,socket.SOCK_STREAM)
sersock.bind(('222.200.50.13',7777))
sersock.listen(5)
cs,addr=sersock.accept()
f=open('D:\\T400 2765mu3.rar','rb')
while True:
    data=f.read(1024)
    if not data : break
    while len(data)>0:
        sent=cs.send(data)
        data=data[sent:]
 
cs.close()
